<?php
/**
 * 
 */
class JobVersionName extends AppModel {
	var $name = 'JobVersionName';
	var $displayField = 'name';
  
  var $validate = array(
      
    'name' => array(
          'notempty' => array(
            'rule' => array('notempty'),
            'message' => 'This value cannot be empty.',
            //'allowEmpty' => false,
            //'required' => false,
            //'last' => false, // Stop validation after this rule
            //'on' => 'create', // Limit validation to 'create' or 'update' operations
          ),
          'maxlength' => array(
            'rule' => array('maxlength', 256),
            'message' => 'Maximum length of this field is 256 characters.',
            //'allowEmpty' => false,
            //'required' => false,
            //'last' => false, // Stop validation after this rule
            //'on' => 'create', // Limit validation to 'create' or 'update' operations
          )
      )
  );
  
	//The Associations below have been created with all possible keys, those that are not needed can be removed

	var $belongsTo = array(
		'JobVersion' => array(
			'className' => 'JobVersion',
			'foreignKey' => 'job_version_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);
}
